﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mangosoft.DiceCopy.Application.Seedwork;
using Mangosoft.DiceCopy.Application.MainBoundedContext.DTO;
using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.JobseekerAgg;

namespace Mangosoft.DiceCopy.Application.MainBoundedContext.JobHuntingModule.Services {
    public class JobseekerAppService : IJobseekerAppService {

        private readonly IJobseekerRepository _jobseekerRepository;


        public JobseekerAppService(IJobseekerRepository jobseekerRepository) {
            _jobseekerRepository = jobseekerRepository;
        }

        public List<JobseekerDTO> FindJobseekers() {
            return null;
        }

        public JobseekerDTO FindJobseeker(Guid id) {
            var jobseeker = _jobseekerRepository.Get(id);

            if (jobseeker != null) {
                return jobseeker.ProjectedAs<JobseekerDTO>();
            }

            return null;
        }
    }
}
